import { createRouter, createWebHistory } from "vue-router";
import index from "@/views/home/index.vue";

const routes = [
  { path: '/', redirect: '/index'},
  { path: '/index', component: index },
  { path: '/buycart', name: "Bugcart", component: import(/* webpackChunkName: Bugcart */ "@/views/buycart/index.vue") },
  { path: '/product', name: "Product", component: import(/* webpackChunkName: Product */ "@/views/product/index.vue") },
  { path: '/scene', name: "Scene", component: import(/* webpackChunkName: Scene */ "@/views/scene/index.vue") },
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;